<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/1
 * Time: 15:40
 */
namespace  vendor;

use vendor\user\user;
require 'user\user.php';
use vendor\user\vip1;
require 'user\vip1.php';
use vendor\user\vip2;
require 'user\vip2.php';
use vendor\user\vip3;
require 'user\vip3.php';

class manager{
    public function opensite(){
        $this->createuser();
        $this->vip1();
        $this->vip2();
        $this->vip3();
    }
    private function shownum(){
        echo '在线人数:'.user::getcount().'<br/>';
    }
    public function createuser(){
        $user= new user();
          echo '<br/>';
//        $user->zhuce();
//        echo '<br/>';
//        $user->denglu();
//        echo '<br/>';
//        $user->updatepwd();
//        echo '<br/>';
        $user->mylevel();
        echo '<br/>';
        $this->shownum();
    }
    public function vip1(){
        echo '<br/>';
        $vip1=new vip1();
        echo '<br/>';
        $vip1->mylevel();
        echo '<br/>';
        $vip1->wenzhang();
        echo '<br/>';
        $this->shownum();
    }
    public function vip2(){
        echo '<br/>';
        $vip2=new vip2();
        $vip2->mylevel();
        $vip2->del();
        echo '<br/>';
        $this->shownum();
    }
    public function vip3(){
        echo '<br/>';
        $vip3=new vip3();
        $vip3->mylevel();
        $vip3->delt();
        echo '<br/>';
        $this->shownum();
    }
    public function closesite(){
        echo '<br/>关闭网站<br/>';
    }
}
$manager = new manager();
$manager->OpenSite();
$manager->closesite();
